package cinema.v1_5.model;

import java.time.LocalDateTime;

public class User {
    private String id;
    private String username;
    private String password;   // 明文
    private String role;       // ADMIN / MANAGER / FRONT
    private String phone;
    private LocalDateTime regTime;

    public User(String id, String username, String password, String role, String phone, LocalDateTime regTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.role = role;
        this.phone = phone;
        this.regTime = regTime;
    }

    public String getId()       { return id; }
    public String getUsername() { return username; }
    public String getPassword() { return password; }
    public String getRole()     { return role; }
    public String getPhone()    { return phone; }
    public LocalDateTime getRegTime() { return regTime; }

    @Override
    public String toString() {
        return username + " | " + role + " | " + phone;
    }
}